Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't perform any EOL conversions on VBA files #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DecimalTurn
Copy link

@DecimalTurn DecimalTurn commented Jul 30, 2024

As mentioned in this comment, the current .gitattributes configurations makes it so that anyone who clones the project will see that it has pending changes. That's because Git will normalize the CRLF inside the working tree to LF in the Index.

These new configurations will ensure that VBA code files keep their CRLF line endings in both the working tree and the index1.

See also: Does the use of -text affect how Git performs diffs?

Closes #56

Footnotes

  1. This remains true as long as VBA files are produced by exporting them from the VBE. If someone create a new VBA file from an IDE configured to use LF, these line endings won't be converted to CRLF. This is quite unlikely unless you expect a lot of contributors to work with a UNIX/Linux machine. If you want to be 100% sure no LFs are introduced by mistake, there is always this action that can be used: https://github.com/marketplace/actions/enforce-crlf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

About line endings
1 participant